/* 共享样式 */
.register-container,
.login-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  min-height: 80vh;
}

.register-image,
.login-image {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9), 
    rgba(248, 250, 252, 0.9)),
    url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
  background-size: cover;
  background-position: center;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #1e293b;
  position: relative;
}

.register-image::before,
.login-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.01);
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #3498db, #2ecc71);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1px;
  letter-spacing: -0.5px;
}

.image-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #2c3e50;
  font-weight: 800;
  letter-spacing: -1px;
}

.image-text p {
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.6;
  max-width: 90%;
}

.register-form,
.login-form {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-header h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.form-header p {
  color: #64748b;
  font-size: 1.05rem;
}

/* Ant Design 组件样式覆盖 */
.ant-form-item {
  margin-bottom: 1.5rem;
}

.ant-input-affix-wrapper {
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.ant-input-affix-wrapper:hover {
  border-color: #e2e8f0;
}

.ant-input-affix-wrapper:focus,
.ant-input-affix-wrapper-focused {
  border-color: #e2e8f0;
  box-shadow: none;
}

.ant-input {
  font-size: 1rem;
  background: transparent !important;
  caret-color: #3498db;
}

.ant-input-affix-wrapper input {
  background: transparent !important;
}

.ant-input-affix-wrapper .ant-input {
  background: transparent !important;
}

.ant-input-password-icon {
  color: #64748b;
}

.ant-btn {
  height: auto;
  padding: 0.875rem 1.5rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.ant-btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
}

.ant-btn-primary:hover {
  background: linear-gradient(135deg, #2980b9, #2471a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.25);
}

.register-button,
.login-button {
  margin-bottom: 2rem;
  margin-top: 0.5rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.forgot-password {
  color: #3498db;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.forgot-password:hover {
  color: #2980b9;
  text-decoration: underline;
}

.social-login {
  text-align: center;
  margin-top: 2.5rem;
}

.social-login p {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.social-login p::before,
.social-login p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
 
}

.social-login p::before {
  left: 0;
}

.social-login p::after {
  right: 0;
}

.social-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.social-button {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.social-button:hover {
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.register-link,
.login-link {
  text-align: center;
  margin-top: 2.5rem;
  color: #64748b;
  font-size: 0.95rem;
}

.register-link a,
.login-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
  transition: color 0.3s;
}

.register-link a:hover,
.login-link a:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* 复选框样式 */
.ant-checkbox-wrapper {
  color: #64748b;
  font-size: 0.95rem;
}

.ant-checkbox-inner {
  border-radius: 4px;
  border-color: #cbd5e1;
}

.ant-checkbox-checked .ant-checkbox-inner {
  background-color: #3498db;
  border-color: #3498db;
}

@media (max-width: 992px) {
  .register-container,
  .login-container {
    max-width: 900px;
  }
  
  .register-form,
  .login-form {
    padding: 3rem;
  }
  
  .register-image,
  .login-image {
    padding: 3rem;
  }
  
  .image-text h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .register-container,
  .login-container {
    grid-template-columns: 1fr;
    margin: 1rem;
    max-width: 450px;
    min-height: auto;
  }

  .register-image,
  .login-image {
    display: none;
  }

  .register-form,
  .login-form {
    padding: 2.5rem;
  }
  
  .form-header h2 {
    font-size: 1.75rem;
  }
} 